package com.codeOfDoom.Sets.SetsCard.SetCardHelpers
{
	import mx.collections.ArrayCollection;
	//type safe enum
	public class CardShape
	{
		private var _name:String;
		private static var _created:Boolean = false;
		
		{
			_created=true;
		}
		public function CardShape(name:String):void{
			if (_created)
				throw new Error(name + " already created");
			_name = name;
		}
		public function toString():String{
			return _name;
		}
		public static const ELLIPSE:CardShape = new CardShape("ellipse");
		public static const DIAMOND:CardShape = new CardShape("diamond");
		public static const SQUIGGLE:CardShape = new CardShape("squiggle");
		public static const SHAPES:Array = [DIAMOND,ELLIPSE,SQUIGGLE];
			

	}
}